<extend name="Public/base"/>

<block name="css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/default/news_index.css"/>
</block>

<block name="body">
	<div class="row visible-xs">
		<div class="visible-xs col-xs-12 visible4phone">
			<ul>
				<li><a href="{:U('News/index')}">全部</a></li>
			<volist name="type" id="vo">
				<li><a href="{:U('News/index',array('type'=>$vo['id']))}">{$vo.name}</a></li>
			</volist>
			</ul>
		</div>
	</div>
	<div class="row video">
		<div class="col-sm-8 col-md-8">
			<span class="list_header hidden-xs">资讯列表</span>
			<ul class="video_list">
				<volist name="data" id="vo">
					<li>[ <a class="type" href="{:U('News/index',array('type'=>$vo['tid']))}">{$vo.type_name}</a> ]
						<a href="{:U('News/article',array('id'=>$vo['id']))}">{$vo.title}</a><br>
						<span class="desc">{$vo.desc}</span>
						<span>作者:{$vo.author}&nbsp;&nbsp;发布时间:{$vo.time|date='Y-m-d H:i:s',###}&nbsp;&nbsp;浏览次数:{$vo.click}</span>
					</li>
				</volist>
			</ul>
			{$page}
		</div>
		<div class="hidden-xs col-sm-4 col-md-4">
		<!-- hidden-xs -->
			<div class="section">
				<div class="header">资讯分类</div>
				<ul>
					<li><a href="{:U('News/index')}">全部</a></li>
				<volist name="type" id="type">
					<li><a href="{:U('News/index',array('type'=>$type['id']))}">{$type.name}</a></li>
				</volist>	
				</ul>
			</div>
			<div class="rank">
				<div class="header">热门资讯</div>
				<ul class="hot_rank">
				<volist name="hot" id="hot">
						<if condition="$i eq 1"><li><em class="n1">{$i}</em><a href="{:U('News/article',array('id'=>$hot['id']))}">{$hot.title}</a></li></if>
						<if condition="$i eq 2"><li><em class="n2">{$i}</em><a href="{:U('News/article',array('id'=>$hot['id']))}">{$hot.title}</a></li></if>
						<if condition="$i eq 3"><li><em class="n3">{$i}</em><a href="{:U('News/article',array('id'=>$hot['id']))}">{$hot.title}</a></li></if>
						<if condition="$i gt 3"><li><em>{$i}</em><a href="{:U('News/article',array('id'=>$hot['id']))}">{$hot.title}</a></li></if>
				</volist>
				</ul>
			</div>
		</div>
	</div>
</block>
